
import { Entity, Column } from 'typeorm';
import {BaseEntity} from "@/entitys/common/baseEntity";

@Entity({comment: "收客订单"})
export class ReceiveOrder extends BaseEntity{
    @Column({comment: '客户名称'})
    customerName: string;

    @Column({comment: '客户ID'})
    customerId: number;

    @Column({comment: '客户电话'})
    customerPhone: string;

    @Column({comment: '成人数', default: 0})
    adult: number;

    @Column({comment: '儿童人数', default: 0})
    child: number;

    @Column({comment: '领队人数', default: 0})
    leader: number;

    @Column({comment: '老人数', default: 0})
    old: number;

    @Column({comment: '发团时间', type: 'date', nullable: true})
    startDate: Date;

    @Column({comment: '散团时间', type: 'date', nullable: true})
    endDate: Date;

    @Column({comment: '线路名称'})
    itineraryName: string;

    @Column({comment: '线路特色'})
    productFeatures: string;
    //
    @Column({comment: '线路信息', type: "json"})
    itineraryList: any[];

    @Column({comment: '报价信息', type: "json"})
    quoteList: any[];

    @Column({comment: '游客名单', type: "json"})
    touristsList: any[];

    @Column({comment: '是否散拼'})
    scattered: boolean;
}